package com.asia5b.a5mall.goods.adapter

import com.asia5b.a5mall.goods.R
import com.asia5b.a5mall.middleware.model.bean.HistoryBean
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * Created by zhangyuncai on 2020/1/11.
 */
class SearchKeyHistoryAdapter(list:ArrayList<HistoryBean>):
BaseQuickAdapter<HistoryBean,BaseViewHolder>(R.layout.item_searchkey_historyadapter,list){
    init {
        addChildClickViewIds(R.id.ll_search_history_gen)
        addChildClickViewIds(R.id.iv_search_delete)
    }
    override fun convert(helper: BaseViewHolder, item: HistoryBean) {
        helper.setText(R.id.tv_search_content,item.getViewText())

    }
}